package com.kfm.hotel.service;

import com.github.pagehelper.PageInfo;
import com.kfm.hotel.domain.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Lenovo
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2023-06-01 22:18:27
*/
public interface SysUserService extends IService<SysUser> {
    //用户功能实现
    SysUser login(SysUser user) throws Exception;
    //实现“记住我”功能
    SysUser login(String username,String password);
    //分页功能
    PageInfo<SysUser> list(SysUser user,Integer page,Integer limit);
    //保存用户
    int saveSysUser(SysUser user);


    void existUsername(SysUser sysUser);
}
